<?php

/**
 * Task form.
 *
 * @package    lbreminder
 * @subpackage form
 * @author     Your name here
 */
class TaskForm extends BaseTaskForm
{
	public function configure() {
		$this->removeFields();
		$this->widgetSchema['user_id'] = new sfWidgetFormInputHidden();
		$this->widgetSchema['year'] = new sfWidgetFormInputHidden();
		$this->widgetSchema['month'] = new sfWidgetFormInputHidden();
		$this->widgetSchema['day'] = new sfWidgetFormInputHidden();
		$this->widgetSchema['due_date'] = new sfWidgetFormJQueryDate(array(
  'config' => '{}',
		));
		$this->widgetSchema['ampm'] = new sfWidgetFormChoice(array(
      'choices' => array('AM' => 'AM', 'PM' => 'PM'),
      'expanded' => false,
		));
		$this->widgetSchema['location'] = new sfWidgetFormChoice(array(
      'choices' => array('Map' => 'Map', 'POI' => 'POI', 'Favourites' => 'Favourites'),
      'expanded' => false,
		));
	}

	protected function removeFields() {
		unset(
		$this['created_at'], $this['updated_at']
		);
	}
}
